<?php include_once "ra_global.php";?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,target-densitydpi=high-dpi,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta content="telephone=no" name="format-detection" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link href="images/m.css" rel="stylesheet" type="text/css" />
<script src="inc/jquery.min.js" type="text/javascript"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
<script>
var imgloading = new Image();
var newimages=[];
var img_arr;
imgloading.src = "images/loading.jpg";

function preloadimages(arr){
	
	var loadedimages=0;
	var postaction=function(){}  //此处增加了一个postaction函数
	var arr=(typeof arr!="object")? [arr] : arr;
	
	
	function imageloadpost(){
		loadedimages++;
		if (loadedimages==arr.length){
			postaction(newimages); //加载完成用我们调用postaction函数并将newimages数组做为参数传递进去
		}
	}
	
	for (var i=0; i<arr.length; i++){
		newimages[i]=new Image()
		newimages[i].src=arr[i]
		newimages[i].onload=function(){
			imageloadpost()
		}
		newimages[i].onerror=function(){
			imageloadpost()
		}
	}
	
	return { //此处返回一个空白对象的done方法
		done:function(f){
			postaction=f || postaction
		}
	}
}


imgloading.onload=function(){
	img_arr=['images/p6bt_h.jpg','images/rule_1_h.jpg','images/change_5_h.jpg','images/loading.jpg','images/Realized_1.jpg','images/Realized_2.jpg','images/Realized_2_h.jpg','images/Realized_3.jpg','images/Realized_3_h.jpg','images/Realizedbg.jpg','images/cg.png','images/change_1.png','images/change_2.png','images/change_3.jpg','images/change_3_h.jpg','images/change_4.png','images/change_4_1.png','images/change_5.jpg','images/change_7.jpg','images/close.png','images/correct.png','images/correct3.png','images/evaluate_1.jpg','images/evaluate_2.jpg','images/evaluate_2_h.jpg','images/evaluatebg.jpg','images/ew_1.png','images/ew_2.jpg','images/ewbg.jpg','images/ewbg.png','images/ftbg.jpg','images/ftbt.jpg','images/ftbt_h.jpg','images/jia.png','images/jia_h.png','images/jian.png','images/jian_h.png','images/libg.png','images/m.css','images/nouser.jpg','images/oil_1.png','images/oil_2.png','images/oldbg.png','images/opnioned.jpg','images/option_1.png','images/option_2.png','images/p1_1.jpg','images/p1_1_h.jpg','images/p1bg.jpg','images/p2_1.jpg','images/p2_1_h.jpg','images/p2_2.jpg','images/p2_2_h.jpg','images/p2_3.png','images/p2bar_1.jpg','images/p2bar_1_h.jpg','images/p2bar_2.jpg','images/p2bar_2_h.jpg','images/p2bar_3.png','images/p2barbg.png','images/p2barmb.png','images/p2barmb2.png','images/p2bg.jpg','images/p2boxbg.png','images/p2boxbt.jpg','images/p2boxbt_2.jpg','images/p2boxbt_2_h.jpg','images/p2boxbt_h.jpg','images/p3_1.jpg','images/p3_1_h.jpg','images/p3_2.jpg','images/p3_2_h.jpg','images/p3bg.jpg','images/p3mb_1.png','images/p3mb_1_h.png','images/p3mb_2.png','images/p3mb_2_h.png','images/p3mbbg.png','images/p4_1.png','images/p4_2.png','images/p4_2mb.png','images/p4bg.jpg','images/p4bt_1.png','images/p4bt_2.png','images/p4bt_3.png','images/p4bt_3mb.png','images/p5_1.jpg','images/p5_1_h.jpg','images/p5_2.png','images/p5_3.png','images/p5_4.png','images/p5bg.jpg','images/p6bg.jpg','images/p6bt.jpg','images/p7_1.jpg','images/p7_2.png','images/p7_3.png','images/p7bg.jpg','images/p7bt.jpg','images/p7bt_h.jpg','images/p7ftbg.jpg','images/p7libg.jpg','images/p8_1.jpg','images/p8_1_h.jpg','images/p8barbg.png','images/p8bg.jpg','images/p8boxbg.png','images/p8bt.jpg','images/p8bt_h.jpg','images/p9_1.jpg','images/p9_1_h.jpg','images/p9bg.jpg','images/p9bt.jpg','images/p9bt_h.jpg','images/p9mb_1.png','images/p9mb_2.png','images/prompt_1.jpg','images/prompt_2.png','images/qcodeinvalid.jpg','images/qd_1.jpg','images/qd_1_h.jpg','images/qd_2.jpg','images/qd_2_h.jpg','images/qd_3.png','images/qdbg.jpg','images/qdmb.png','images/qr.jpg','images/qr_h.jpg','images/revert.jpg','images/revert_h.jpg','images/rule_1.jpg','images/sale_1.png','images/sale_2.png','images/sale_3.png','images/salebg.jpg','images/sb_1.png','images/sb_2.png','images/sb_3.png','images/sb_4.png','images/snamebg.png','images/star_1.png','images/star_2.png','images/tishi.png','images/tj_1.png','images/tj_1_h.png','images/tj_2.png','images/tjbg.png','images/transverse_line.jpg','images/unrealized_1.jpg','images/unrealized_2.jpg','images/unrealized_2_h.jpg','images/unrealizedbg.jpg','images/wishbg.jpg','images/wishbottom.jpg','images/wishbt.jpg','images/wishbt_h.jpg','images/wishfooterbg.jpg','images/wishfooterbt.jpg','images/wishfooterbt_h.jpg','images/wishlibg.jpg','images/wishlist_1.jpg','images/wishlist_2.jpg','images/wishlist_5.jpg','images/wishsucc.png','images/wl_1.png','images/wl_1_h.png','images/wlbg.jpg'];
	preloadimages(img_arr).done(function(images){
		setTimeout(function(){
			$('#loadings').fadeOut(500);
		},200);
	});
};
</script>
<title>喜力超凡大师</title>
</head>

<body>
<script type="text/javascript">
var x,y,p;
$(document).ready(function() {
	x=parseInt(window.innerWidth);
	y=parseInt(window.innerHeight);
	p=720/x;
	getWidth();
});	

//删除左右两端的空白字符
function trim(str){
	return str.replace(/(^\s*)|(\s*$)/g, "");
}

function onBridgeReady(){
	WeixinJSBridge.call('hideOptionMenu');
}

if (typeof WeixinJSBridge == "undefined"){
	if( document.addEventListener ){
		document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	}else if (document.attachEvent){
	document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
	document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	}
}else{
	onBridgeReady();
}
</script>